<div id="header">
    <div class="header">
        <div class="clearfix">
            <div class="logo"><a href="<?php echo base_url(); ?>"><img src="<?php echo base_url('medias/images/1354933738.8544.png'); ?>"></a></div>
            <?php echo $this->load->view('_partials/search'); ?>
        </div>
        <div class="clearfix rowEdit">
            <div class="clock">
                <span id="hours"></span>
                <span>:</span>
                <span id="min"></span>
                <span>:</span>
                <span id="sec"></span>
                <span>&nbsp;|&nbsp;</span>
                <span><?php echo date('d.m.Y',time()); ?></span>
            </div>
            <span class="dateTime">
                 Tỷ giá: USD = 20.855 VNĐ, EUR = 28.321 VNĐ

            </span>
            <a href="<?php echo site_url('dang-tin-rao-vat') ?>">
                <div class="btnPost right"></div>
            </a>
        </div>
        <?php if(empty($category_id)){


                echo '<div class="clearfix"><div class="hr"></div></div>';
            }?>

    </div>


</div>
<?php
if(!empty($category_id)){

?>
<div class="Mainmenu">
    <div id="header-brands" align="center">
        <div class="menu-brands">
            <?php

                foreach(get_category($category_id) as $val){


                        ?>
                        <div class="txt-menu"><a href="<?php echo  get_post_list_url($this->province_id,$category_id,$val['id']); ?>" class="<?php if($val['id']==$sub_cat_id){ echo 'selected';} else { echo 'default';} ?>"> <?php echo $val['name']; ?></a></div>
                        <?php }   ?>
        </div>
    </div>

</div>
<?php }else {
    echo "<div style='height: 10px;' class='clearfix'></div>";
} ?>